<style type="text/css">
#massage_menu, #woomail_menu, #addmor_menu {
	border-color: #9A9A9A;
	margin:0 1px -1px;
	padding: 3px;
	width: 300px;
	font-family:Tahoma, Geneva, sans-serif;
	text-align:left !important;
	font-weight:normal;
	position:fixed !important;
	top:30px !important;
	border-top:0;
}
.bottom-box-mass {
	background-color:#F7F7F7;
	width:100%
}
#addmor_content .xld dd, #massage_content .xld dd, #woomail_content .xld dd{
	padding:3px !important;
	text-align:left !important;	
}
</style>
<div id="toptb" class=" cl">
    <div class="bgtop_pg">
        <div class="fix-w-hd cl">
            <!--{if $_G['uid']}-->
            <a href="javascript:;" id="qmenu" onmouseover="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});" initialized="true"><!--{avatar($_G[uid],small)}--></a>
            <a href="home.php?mod=spacecp&ac=friend&op=request&ts=friend" class="buttonmenu" id="addmor" onClick="return loadmessage(this.id);" initialized="true" title="Lời mời kết bạn" >&nbsp;</a>
            <a href="home.php?mod=space&do=pm" id="woomail" class="buttonmenu" onClick="return loadmessage(this.id);"  initialized="true" title="Tin nhắn mới">&nbsp;</a>
            <a href="home.php?mod=space&do=notice" id="massage" class="buttonmenu" onClick="return loadmessage(this.id);"  initialized="true" title="Thông báo mới">&nbsp;</a>
            <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><a href="home.php?mod=task&item=doing" id="task_ntc" class="new" title="{lang task_doing} {lang task}"></a><!--{/if}-->
            <!--{/if}-->
            <ul>
                <li class="home_img"><a href="/" title="{lang trang_chu}"><img src="{IMGDIR}/logo_small.png" width="90" height="33" alt="woo.vn" /></a></li>
        <!--{loop $_G['setting']['navs'] $nav}-->
            <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
                <li{if $mnid == $nav[navid]} class="a"{/if} $nav[nav]></li>
            <!--{/if}-->
        <!--{/loop}-->
            </ul>
            <!--{if $_G['uid']}-->
            <!--{subtemplate common/pubsearchform}-->
            <!--{else}-->
            <span style="margin-right:100px;float:right">
                <ul>
                    <li><a href="member.php?mod=register">Đăng ký</a></li>
                    <li><a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)">Đăng nhập</a></li>
                </ul>
            </span>
            <!--{/if}-->
        </div> 
    </div>
</div>
<!-- Sub Top Menu -->
$_G[setting][menunavs]
<!--{if !IS_ROBOT}-->
<script type="text/javascript">
function loadingprompt(){
	return '<span class=""><img align="absmiddle" src="{IMGDIR}/loading.gif">&nbsp;Đang tải ...</span>';
}
</script>
<div id="addmor_menu" class="p_pop {if !$_G['uid']}blk{/if} clearfix" style="display:none;">
    <div class="box-content-massage ac_pop fts">
        <div class="top-box-mass modul-item-right bord-b cleadfix">Lời mời kết bạn</div>
        <div id="addmor_content" class="content_box_p_pop">Không có lời mời nào</div>
    </div><!--/box-modul-marker-->
    <div class="bottom-box-mass p-i-r bord-t"><a href="home.php?mod=spacecp&ac=friend&op=request">Xem tất cả lời mời kết bạn</a></div>
</div><!--/addmor_menu-->
<div id="massage_menu" class="p_pop {if !$_G['uid']}blk{/if} clearfix" style="display:none;">
    <div class="box-content-massage ac_pop fts">
        <div class="top-box-mass modul-item-right bord-b cleadfix">Tin mới</div>
        <div id="massage_content" class="content_box_p_pop"> Không có tin thông báo nào</div>
    </div><!--/box-modul-marker-->
    <div class="bottom-box-mass p-i-r bord-t"><a href="home.php?mod=space&do=notice&isread=1">Xem tất cả tin thông báo</a></div>
</div><!--/massage_menu-->
<div id="woomail_menu" class="p_pop {if !$_G['uid']}blk{/if} clearfix" style="display:none;" >
    <div class="top-box-mass modul-item-right bord-b cleadfix">Tin nhắn riêng<a href="home.php?mod=spacecp&ac=pm">Gửi tin nhắn</a></div>
        <div class="box_content_woomail cl">
            <div class="box-content-massage ac_pop fts">
                <div id="woomail_content" class="content_box_p_pop">Không có tin nhắn nào</div>
            </div><!--/box-modul-marker-->
        </div>
    <div class="bottom-box-mass p-i-r bord-t"><a href="home.php?mod=space&do=pm&filter=privatepm">Xem tất cả tin nhắn</a></div>
</div><!--/womail_menu-->
<div id="qmenu_menu" class="p_pop {if !$_G['uid']}blk{/if}" style="display: none;">
<!--{if $_G['uid']}-->
    <div class="ac_pop">
        <div class="avt left"><!--{avatar($_G[uid],small)}--></div>
        <dd class="shoft_profile">
            <dl><a href="home.php?mod=space&uid=$_G[uid]" title="{lang go_to_space}"><strong>{$_G[member][username]}</strong></a></dl>
            <dl><!--{if $_G[member][realname]}-->$_G[member][realname]<!--{else}--><a href="home.php?mod=spacecp" title="{lang update_profile_setup}">{lang create_realname}</a><!--{/if}--></dl>
            <dl>{lang usergroup}: <a href="home.php?mod=spacecp&ac=usergroup" title="{lang go_to_my_group}">$_G[group][grouptitle]</a></dl>
        </dd>
    </div>
    <div class="clear"></div>
    <div class="shorf_axtra_menu"> 
        <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
        <a href="admin.php" title="{lang admincp}" align="absmiddle" target="_blank"><img src="{IMGDIR}/admin.png" align="absmiddle" alt="{lang admincp}" />&nbsp;&nbsp;{lang admincp}</a>
        <!--{/if}-->
        <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
        <a href="portal.php?mod=portalcp" title="{lang portal_manage}"><img src="{IMGDIR}/portalcp.png" align="absmiddle" alt="{lang portal_manage}" /><!--{if $_G['setting']['portalstatus'] }-->&nbsp;&nbsp;{lang portal_manage}<!--{else}-->&nbsp;&nbsp;{lang portal_block_manage}<!--{/if}--></a>
        <!--{/if}-->
        <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
        <a href="forum.php?mod=modcp&fid=$_G[fid]" title="{lang forum_manager}"><img src="{IMGDIR}/forum_cp.png" align="absmiddle" alt="{lang forum_manager}" />&nbsp;&nbsp;{lang forum_manager}</a>
        <!--{/if}-->
        <a href="home.php?mod=spacecp" title="{lang update_profile_setup}"><img src="{IMGDIR}/my_account.png" align="absmiddle"/>&nbsp;&nbsp;{lang update_profile_setup}</a>
        <a href="home.php?mod=spacecp&ac=invite" title="{lang update_invite_setup}"><img src="{IMGDIR}/invite_add.png" align="absmiddle"/>&nbsp;&nbsp;{lang update_invite_setup}</a>
        <a href="home.php?mod=spacecp&ac=privacy" title="{lang update_privacy_setup}"><img src="{IMGDIR}/advancedsettings.png" align="absmiddle"/>&nbsp;&nbsp;{lang update_privacy_setup}</a>
        <a href="member.php?mod=logging&action=logout&formhash={FORMHASH}" title="{lang logout}"><img src="{IMGDIR}/logout_small.png" align="absmiddle"/>&nbsp;&nbsp;{lang logout}</a>
    </div>
    <div class="clear hr_noise"></div>
    <!-- Dieu Huong -->
    <div class="s_qmenu">
        <ul>
        <!--{loop $_G['setting']['mynavs'] $nav}-->
            <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
                <li>$nav[code]</li>
            <!--{/if}-->
        <!--{/loop}-->
        </ul>
    </div>
<!--{else}-->
    <div class="ptm pbw hm">
        {lang my_nav_login}
    </div>
<!--{/if}-->
</div>
<!--{/if}-->